Non-invasive mechanical ventilator